﻿#include "output1.h"
#include "ui_output1.h"

output1::output1(QStringList classnames,QWidget *parent) :
    QDialog(parent),
    ui(new Ui::output1)
{
    ui->setupUi(this);

    ui->combClassName->addItems(classnames);
}

output1::~output1()
{
    delete ui;
}

void output1::on_pushButton_clicked()
{
    this->reject();
}


void output1::on_pushButton_3_clicked()
{
    ui->lineEdit->setText(QFileDialog::getSaveFileName(0,"选择保存位置",QDir::homePath(),"文本文件(*.txt);;所有文件(*.*)"));
}


void output1::on_pushButton_2_clicked()
{
    emit outPut1(ui->combClassName->currentText(),ui->lineEdit->text());
    this->accept();
}

